#include <machine/asm.h>

ENTRY(strlen)
	movl	4(%sp),%a0		| string
	movl	%a0,%d0
	notl	%d0
.Lslloop:
	tstb	(%a0)+			| null?
	jne	.Lslloop		| no, keep going
	addl	%a0,%d0
	rts
END(strlen)
